<?php

class CCoreSession
{
	/**
	 * @param	ICoreSessionHandlerIncInterface	$oHandler
	 * @return	void
	 */
	public static function SetHandler(ICoreSessionHandlerIncInterface $oHandler)
	{
		session_set_save_handler(
			array(&$oHandler, 'open'),
			array(&$oHandler, 'close'),
			array(&$oHandler, 'read'),
			array(&$oHandler, 'write'),
			array(&$oHandler, 'destroy'),
			array(&$oHandler, 'gc')
		);
	}
}